Make sure this gets defined for all backends, so linux-fb has a chance of
authorMatthias Clasen <matthiasc@src.gnome.org>
Tue, 22 Jun 2004 15:34:02 +0000 (15:34 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 22 Jun 2004 15:34:02 +0000 (15:34 +0000)
* gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure
this gets defined for all backends, so linux-fb has a
chance of compiling.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkselection.c

index e8bdca6f5487f548995f3dc2cb804beec45e0912..d8f6f9e3a091a4174adcfe668d6fcd5f31731d73 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-06-22  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure 
+       this gets defined for all backends, so linux-fb has a 
+       chance of compiling.
+
        * gdk/x11/gdkgc-x11.c: 
        * gdk/gdkgc.c: Move function docs inline, add hints about 
        obtaining rgb colors from gcs.  (#144688, Steve Chaplin)
index e8bdca6f5487f548995f3dc2cb804beec45e0912..d8f6f9e3a091a4174adcfe668d6fcd5f31731d73 100644 (file)
@@ -1,5 +1,9 @@
 2004-06-22  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure 
+       this gets defined for all backends, so linux-fb has a 
+       chance of compiling.
+
        * gdk/x11/gdkgc-x11.c: 
        * gdk/gdkgc.c: Move function docs inline, add hints about 
        obtaining rgb colors from gcs.  (#144688, Steve Chaplin)
index e8bdca6f5487f548995f3dc2cb804beec45e0912..d8f6f9e3a091a4174adcfe668d6fcd5f31731d73 100644 (file)
@@ -1,5 +1,9 @@
 2004-06-22  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure 
+       this gets defined for all backends, so linux-fb has a 
+       chance of compiling.
+
        * gdk/x11/gdkgc-x11.c: 
        * gdk/gdkgc.c: Move function docs inline, add hints about 
        obtaining rgb colors from gcs.  (#144688, Steve Chaplin)
index e8bdca6f5487f548995f3dc2cb804beec45e0912..d8f6f9e3a091a4174adcfe668d6fcd5f31731d73 100644 (file)
@@ -1,5 +1,9 @@
 2004-06-22  Matthias Clasen  <mclasen@redhat.com>
 
+       * gtk/gtkselection.c (GTK_SELECTION_MAX_SIZE): Make sure 
+       this gets defined for all backends, so linux-fb has a 
+       chance of compiling.
+
        * gdk/x11/gdkgc-x11.c: 
        * gdk/gdkgc.c: Move function docs inline, add hints about 
        obtaining rgb colors from gcs.  (#144688, Steve Chaplin)
index 83374ff355d4fd8b4237508c92e946e4b3b6a09a..a33e63a25c15b0d9750271b91abf419b978d02cf 100644 (file)
 
 /* Maximum size of a sent chunk, in bytes. Also the default size of
    our buffers */
-#ifdef GDK_WINDOWING_WIN32
-/* No chunks on Win32 */
-#define GTK_SELECTION_MAX_SIZE(display) G_MAXINT
-#else
+#ifdef GDK_WINDOWING_X11
 #define GTK_SELECTION_MAX_SIZE(display)                                 \
   MIN(262144,                                                           \
       XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) == 0     \
        ? XMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100         \
        : XExtendedMaxRequestSize (GDK_DISPLAY_XDISPLAY (display)) - 100)
+#else
+/* No chunks on Win32 */
+#define GTK_SELECTION_MAX_SIZE(display) G_MAXINT
 #endif
 
 #define IDLE_ABORT_TIME 300